package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 医生问诊投诉记录里实体
 *
 * @since 1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Entity
@ToString
@Table(name = "dr_consult_complaint")
public class DrConsultComplaint implements Serializable {
    private static final long serialVersionUID = 240153557233353674L;

    /**
     * 主键：<code>id</code>
     */
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * 医生id：<code>doctorId</code>
     */
    @Column(name = "doctor_id", nullable = false)
    private Long doctorId;

    /**
     * 患者id：<code>patientId</code>
     */
    @Column(name = "patient_id", nullable = false)
    private Long patientId;

    /**
     * 问诊会话id：<code>consultSessionId</code>
     */
    @Column(name = "consult_session_id")
    private Long consultSessionId;

    /**
     * 问诊类型：<code>consult_type</code>
     */
    @Column(name = "consult_type")
    private Integer consultType;

    /**
     * 问题
     */
    @Column(name = "question")
    private String question;

    /**
     *  联系方式
     */
    @Column(name = "phone")
    private String phone;

    /**
     * 创建时间：<code>createdAt</code>
     */
    @Column(name = "created_at")
    private Date createdAt;

    /**
     * 创建人：<code>createdBy</code>
     */
    @Column(name = "created_by")
    private String createdBy;

    /**
     * 更新时间
     */
    @Column(name = "changed_at")
    private Date changedAt;

    /**
     * 更新人
     */
    @Column(name = "changed_by")
    private String changedBy;

    @Version
    private Integer version;


}
